import { http } from '@/utils/http'

/**
 * 首页-广告区域
 * @param distributionSite 广告区域展示位置（投放位置 投放位置，1为首页，2为分类商品页） 默认是1
 */
export const getHomeBannerAPI = (distributionSite = 1) => {
  return http<any[]>({
    method: 'GET',
    url: '/shop/consume/mobile/home/carousel/list',
    data: {
      distributionSite,
    },
  })
}

/**
 * 首页-前台分类
 */
export const getHomeCategoryAPI = (data: any) => {
  return http<any[]>({
    method: 'GET',
    url: '/shop/consume/mobile/home/category',
    data,
  })
}

/**
 * 猜你喜欢
 */
export const getHomeGoodsGuessLikeAPI = (data?: any) => {
  return http<any>({
    method: 'GET',
    url: '/shop/consume/mobile/home/product/guessLike',
    data,
  })
}
